package org.kernely.core.service;

import org.kernely.core.service.KernelyBundle;
import org.kernely.core.service.KernelyBundleService;


/**
 * Provides bundle listeners management methods
 */
public interface KernelyBundleServiceListener {
	/**
	 * This function is called when a bundle is deployed.
	 * @param module The deployed bundle.
	 */
	void moduleRegistered(KernelyBundleService source, KernelyBundle module);
	

	/**
	 * This function is called when e bundle is unregistered.
	 * @param module The undeployed bundle.
	 */
	void moduleUnregistered(KernelyBundleService source, KernelyBundle module);
}
